package team.seekers.oj.lesson.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.*;
import team.seekers.oj.common.entity.BaseDO;

import java.util.Date;


@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName(SectionDOField.TABLE_NAME)
public class SectionDO extends BaseDO {

    @TableId(value = SectionDOField.ID, type = IdType.AUTO)
    private Long id;

    @TableField(value = SectionDOField.GMT_CREATE, fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(value = SectionDOField.GMT_MODIFIED, fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    @TableField(SectionDOField.DELETED)
    @TableLogic(value = "0", delval = "1")
    private Integer deleted;

    @TableField(SectionDOField.VERSION)
    @Version
    private Integer version;

    @TableField(SectionDOField.NAME)
    private String name;

    @TableField(SectionDOField.VIDEO)
    private String video;

    @TableField(SectionDOField.DESCRIPTION)
    private String description;

    @TableField(SectionDOField.COURSE_ID)
    private Long courseId;

    @TableField(SectionDOField.CHAPTER_ID)
    private Long chapterId;

    @TableField(SectionDOField.USER_ID)
    private Long userId;

}